
<template>
  <!--  提现状态-->
  <div v-if="props.param === 'statusCode'">
    <div v-if="props.scope.statusCode === 'normal'">{{getStatus(props.scope.statusCode)}}</div>
    <el-tooltip v-if="props.scope.statusCode === 'exception'" effect="dark" :content="props.scope.failDescription || '暂无异常说明'" placement="top">
      <div>{{getStatus(props.scope.statusCode)}}</div>
    </el-tooltip>
  </div>

</template>
<script setup>
import {onMounted, ref, watch} from 'vue'
const props = defineProps({ scope: {default: ''}, param: {default: ''}})
const getStatus = (value) => {
  const statusMap = {
    normal: '正常',
    exception: '异常'
  }
  return statusMap[value]
}
onMounted(() => {
})
</script>

<style scoped>
</style>
